package com.time.client.application.interceptor;

import feign.RequestInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Feign配置类
 *
 * @author: HuangQi
 * @date: Created in 17:17 2024/4/18
 * @description: Feign配置类
 */
@Configuration
public class FeignConfiguration {

    /**
     * 注入Feign请求拦截器
     *
     * @return
     */
    @Bean
    public RequestInterceptor requestInterceptor() {
        return new FeignRequestInterceptor();
    }
}
